// function getComponent(){
//
//   return import('lodash').then(({default:_})=>{
//     const element = document.createElement("div");
//     element.innerHTML = _.join(['hello' , 'webpack'],'');
//
//     return element;
//   }).catch(error=>{
//     return 'An error occurred while loading the component';
//   });
//
// }
//
// getComponent().then((component)=>{
//   document.body.appendChild(component);
// });



import {cube} from "./math";
import "./decorator/decorator-demo.js";


function component() {

  const element = document.createElement('pre');

  element.innerHTML = [
    'Hello webpack!',
    '5 cubed is equal to ' + cube(5)
  ].join('\n\n');

  return element;
}

document.body.appendChild(component());
